<?php
class EmailTemplate_Model extends CI_Model{
	function __construct(){
		parent::__construct();		
	}
	
	function getEmailTeplateByName($email_code){
		$this->db->where('email_code',$email_code);
		$query = $this->db->get('emailtemplates');	
		if(!empty($query) && $query->num_rows() > 0) {
			return $query->first_row();	
		}
		return false;
	}
}
?>